package com.quanshu.exchange.ui.widget;

import android.app.ProgressDialog;
import android.content.Context;
import android.os.Bundle;

import com.quanshu.exchange.R;
import com.quanshu.exchange.support.net.loading.ILoading;

public class LoadingDialog extends ProgressDialog implements ILoading {

    private boolean cancelAble = false;

    public LoadingDialog(Context context, boolean cancelAble) {
        super(context, R.style.LoadingProgressTheme);
        this.cancelAble = cancelAble;
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.dialog_loading);
        setCancelable(cancelAble);
    }
}